<cfoutput>
<base href="/cfusion8/apps/SmugSettings/" />

<ul>
	<li><a href="index.cfm">Home</a></li>

	<cfif IsDefined( "Session.user.loggedIn" ) And Session.user.loggedIn>
		<li><a href="./action.cfm?doAction=albums.update.view">Update Albums</a></li>
		<li><a href="./action.cfm?doAction=auth.logout">Logout</a></li>
	<cfelse>
		<li><a href="./action.cfm?doAction=auth.login.view">Login</a></li>
	</cfif>
</ul>
<!--- <cfdump var="#Session.messages#"> --->
<cfif IsDefined( "Session.messages.success" ) And ArrayLen( Session.messages.success )>
	<cfloop from="1" to="#ArrayLen( Session.messages.success )#" index="currentMessageIndex">
		<h4 class="success">#Session.messages.success[currentMessageIndex]#</h4>
	</cfloop>
</cfif>
<cfif IsDefined( "Session.messages.errors" ) And ArrayLen( Session.messages.errors )>
	<cfloop from="1" to="#ArrayLen( Session.messages.errors )#" index="currentMessageIndex">
		<h4 class="error">#Session.messages.errors[currentMessageIndex]#</h4>
	</cfloop>
</cfif>
</cfoutput>